<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.book.DbManager"%>
<%@page import="java.sql.ResultSet"%>

<%@page import="java.beans.Statement"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="book.css">
<title>rework</title>
<script type="text/javascript">
	function sf() {
		alert("是否确定修改该项目？");
		var isbn = document.getElementById("isbn").value;
		if (isbn == "") {
			alert('isbn 不能为空且只能为标准书号');
			return false;
		}
		alert(isbn);
		document.forms[0].submit();
	}
</script>
</head>
<body>
<div class="ddone">
<h4 align="center">修改项目信息如下：</h4>
</div>
<form action="update.jsp" method="post">
<table align="center" width="380" height="400" bgcolor="#606060"
	border="1">
	<%
		String isbn = request.getParameter("isbn");
		String st = "select * from book where isbn=" + isbn;
		ResultSet rst = DbManager.getRst(st);
		while (rst.next()) {
	%>
	<tr align="center">
		<td>isbn:</td>
		<td><input name="isbn" value="<%=rst.getString("isbn")%>"></td>
	</tr>
	<tr align="center">
		<td>name:</td>
		<td><input name="name" value="<%=rst.getString("name")%>"></td>
	</tr>
	<tr align="center">
		<td>author:</td>
		<td><input name="author" value="<%=rst.getString("author")%>"></td>
	</tr>
	<tr align="center">
		<td>price:</td>
		<td><input name="price" value="<%=rst.getString("price")%>"></td>
	</tr>
	<tr align="center">
		<td><input type="submit" value="确  定" onclick=
	sf();
></td>
		<td><input type="reset" value="取   消"></td>

	</tr>
	<%
		}
	%>
</table>
</form>
</body>
</html>